package com.cumt.controller.home;

import com.cumt.framework.rest.BaseRestServerInterface;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by caicf on 2016/12/27.
 */
public interface UserController extends BaseRestServerInterface {

    @RequestMapping(value = "/a", method = RequestMethod.GET)
    String getName();

    @RequestMapping(value = "/login", method = RequestMethod.GET)
    ModelAndView login();

    @RequestMapping(value = "/va", method = RequestMethod.GET, produces = {MediaType.APPLICATION_JSON_UTF8_VALUE})
    String save();
}

